<?php 
namespace Home\Controller ;

class ShopController extends HomeController {
	function _initialize(){
		parent::_initialize();
	}
	function index(){


		//查找推荐的商品 . 带缓存功能 

		$recommend = get_recommend_goods();

		//查找热卖的商品 . 带缓存功能。

		$hots = get_hot_goods();
		$this->assign('recommend' , $recommend);
		$this->assign('hots' , $hots );
		$this->display();
	}
}